/**
 * @author abcque
 * @version 1.0
 * @ className TypeConversionTest
 * @ description 数据类型转换练习
 * @ date 2022/10/18 11:48
 */
public class TypeConversionTest {
    public static void main(String[] args) {
        // short s = 5;
        // s = (short)(s + 2);


        // byte b = 3;
        // b = b + 4;
        // b = (byte) (b+4);


        // char c = 'a';
        // int i = 5;
        // float d = .314F;
        // double result = c + i + d;


        byte b = 5;
        short s = 3;
        // short 和 byte 不能直接运算，需要转换成 int

        // short t = s + b;
        short t = (short)(s + b);



    }
}
